<style type="text/css">
div .avatar a img, div .avatar img{
	width:200px !important;
	}
</style>

<!-- AVATAR AND PROCESS PROFILE AND VISIT NUMBER AND Process Profile -->
<div class="box-usre-about bm bw0{if $_G['gp_diy'] != 'yes'} block{/if} move-span">
    <div class="mi mar-pa-box">
        <div class="avatar mbn cl">
        	<!--{if $_G['uid'] == $space['uid']}-->
            <a href="home.php?mod=spacecp&ac=avatar" title="{lang memcp_avatar}" id="edit_avt">
            	<span id="edit_avt_tar"><strong>{lang memcp_avatar}</strong></span>
            <!--{/if}-->
            	<!--{avatar($space[uid],big)}-->	
            <!--{if $_G['uid'] == $space['uid']}-->																																																																			 			</a>
            <!--{/if}-->
        </div>
        <p class="left_profile">
            <a href="home.php?mod=space&username=$space[username]" class="o xi2"><strong>{lang view_my_space}</strong></a>
            <!--{if $_G['group']['allowinvisible'] && $space['uid'] == $_G['uid'] && $_G['uid']}-->
                <span id="loginstatus" class="login_status">
                    <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
                </span>
            <!--{/if}-->
            <br />
            ({lang have} <em class="xi1"><strong>$space[views]</strong></em> {lang visit_per_man})
        </p>
    </div>
    <!--{if $space[profileprogress] != 100}-->
    <div class="bm woo-mr-bt">
        <div class="bm_c add-cl">
            <div class="pbg_info" style="padding-top:3px;">
            	<div>{lang profile_title_box}</div>
            	<div class="pbg mbn"><div class="pbr" style="width: {if $space[profileprogress] < 2}2{else}$space[profileprogress]{/if}%;"></div></div>
            	{lang profile_completed} <b class="big">$space[profileprogress]%</b><br />
                <!--{if ($space['uid'] == $_G['uid']) && $_G['uid']}-->
            	<a href="home.php?mod=spacecp&ac=profile" class="xi2">{lang fix_profile}</a>
                <!--{/if}-->
        	</div>
            <!--{$html_extra}-->
        </div>
    </div>
    <!--{/if}-->
    <!--{if 0 == 1}-->
    <!--{if $space['uid'] == $_G['uid']}-->
     <div class="module-features woo-to-x">
        <ul class="clearfix">
            <!--{if $_G['uid']}-->
                <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
                <li class="clearfix"><a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} onmouseover="delayShow(this, showCreditmenu);" class="showmenu"{/if}><img src="{IMGDIR}/coins.png" width="14" height="14" alt="{lang credits}" /> {lang credits}: $_G[member][credits]</a></li>
            <!--{/if}-->
            <li class="clearfix"><a href="home.php?mod=space&username=$space[username]&do=profile" title="{lang memcp_profile}"><img src="{IMGDIR}/profile.gif" width="14" height="14" alt="{lang memcp_profile}" /><!--{if !empty($personalnv['items']['profile'])}-->$personalnv['items']['profile']<!--{else}-->{lang memcp_profile}<!--{/if}--></a></li>
            <!--{if $_G['setting']['allowviewuserthread'] !== false && (empty($personalnv['banitems']['topic']))}-->
            <li><a href="home.php?mod=space&username=$space[username]&do=thread"><img src="{IMGDIR}/thread.gif" width="14" height="14" alt="{lang thread}" /><!--{if !empty($personalnv['items']['topic'])}-->$personalnv['items']['topic']<!--{else}-->{lang topic}<!--{/if}--></a></li>
            <!--{/if}-->
            <li class="clearfix"><a href="home.php?mod=space&username=$space[username]&do=friend" title="{lang friends}"><img src="{IMGDIR}/invite_add.png" width="14" height="14" alt="{lang friends}" /> {lang friends}</a>
            <span><a href="home.php?mod=spacecp&ac=invite" title="{lang update_invite_setup}">{lang update_invite_setup}</a></span>
            </li>
            <!--{loop $_G['setting']['spacenavs'] $nav}-->
                <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
                    <!--{if in_array($nav['code'], array('userpanelarea1', 'userpanelarea2'))}-->
                        <!--{if !empty($_G[my_panelapp]) && $_G['setting']['my_app_status']}-->
                            <!--{if $nav['code']=='userpanelarea1' && !empty($_G[my_panelapp][1])}-->
                                <!--{loop $_G[my_panelapp][1] $appid $app}-->
                                <li class="clearfix"><a href="userapp.php?mod=app&id=$app[appid]" title="$app[appname]"><img src="$app[icon]" name="$appid" alt="$app[appname]" />$app[appname]</a></li>
                                <!--{/loop}-->
                            <!--{elseif $nav['code']=='userpanelarea2' && !empty($_G[my_panelapp][2])}-->
                                <!--{loop $_G[my_panelapp][2] $appid $app}-->
                                <li class="clearfix"><a href="userapp.php?mod=app&id=$app[appid]" title="$app[appname]"><img src="$app[icon]" name="$appid" alt="$app[appname]" />$app[appname]</a></li>
                                <!--{/loop}-->
                            <!--{/if}-->
                        <!--{/if}-->
                    <!--{else}-->
                    $nav[code]
                    <!--{/if}-->
                <!--{/if}-->
            <!--{/loop}-->
        </ul>
    </div>
    <!--{else}-->
    <div class="module-features woo-to-x">
        <ul class="clearfix">
        	<li class="clearfix"><a href="home.php?mod=space&username=$space[username]" title="{lang feed}"><img src="{IMGDIR}/share.png" width="14" height="14" alt="{lang feed}" /><!--{if !empty($personalnv['items']['index'])}-->$personalnv['items']['index']<!--{else}-->{lang main_page}<!--{/if}--></a></li>
            <!--{if $personalnvshop && empty($personalnv['banitems']['shopping'])}-->
            <li class="clearfix"><a href="home.php?mod=space&username=$space[username]&do=shopping"><img src="{IMGDIR}/product.gif" width="14" height="14" alt="{lang shopping_title}" /><!--{if !empty($personalnv['items']['shopping'])}-->$personalnv[items][shopping]<!--{else}-->{lang shopping_title}<!--{/if}--></a></li>
            <!--{/if}-->
            <li class="clearfix"><a href="home.php?mod=space&username=$space[username]&do=blog" title="{lang blog}"><img src="{IMGDIR}/blog.gif" width="14" height="14" alt="{lang blog}" /><!--{if !empty($personalnv['items']['blog'])}-->$personalnv['items']['blog']<!--{else}-->{lang blog}<!--{/if}--></a></li>
            <li class="clearfix"><a href="home.php?mod=space&username=$space[username]&do=album" title="{lang album}"><img src="{IMGDIR}/album.gif" width="14" height="14" alt="{lang album}" /><!--{if !empty($personalnv['items']['album'])}-->$personalnv['items']['album']<!--{else}-->{lang album}<!--{/if}--></a></li>
            <!--{if $_G['setting']['allowviewuserthread'] !== false && (empty($personalnv['banitems']['topic']))}-->
			<li><a href="home.php?mod=space&username=$space[username]&do=thread"><img src="{IMGDIR}/thread.gif" width="14" height="14" alt="{lang thread}" /><!--{if !empty($personalnv['items']['topic'])}-->$personalnv['items']['topic']<!--{else}-->{lang topic}<!--{/if}--></a></li>
			<!--{/if}-->
            <li class="clearfix"><a href="home.php?mod=space&username=$space[username]&do=friend" title="{lang friends}"><img src="{IMGDIR}/invite_add.png" width="14" height="14" alt="{lang friends}" /><!--{if !empty($personalnv['items']['friends'])}-->$personalnv['items']['friends']<!--{else}-->{lang friends}<!--{/if}--></a></li>
            <li class="clearfix"><a href="home.php?mod=space&username=$space[username]&do=profile" title="{lang memcp_profile}"><img src="{IMGDIR}/profile.gif" width="14" height="14" alt="{lang memcp_profile}" /><!--{if !empty($personalnv['items']['profile'])}-->$personalnv['items']['profile']<!--{else}-->{lang memcp_profile}<!--{/if}--></a></li>
        </ul>
    </div>
    
    <!--{/if}-->
    <!--{/if}-->
</div>

<!--{if $visitorlist && $home_run}-->
<div class="bm {if $_G['gp_diy'] != 'yes'} block{/if} move-span">
    <div class="blocktitle title">
        <span>{lang recent_visit}</span>
        <span class="y xw0">
            <a href="home.php?mod=space&username=$space[username]&do=friend&view=visitor">{lang all}</a>
        </span>
    </div>
    <div class="bm_l woo-mr-bt">
        <ul class="inlinelist clearfix">
            <!--{loop $visitorlist $key $value}-->
            <li class="clearfix z">
                <!--{if $value[vusername] == ''}-->
                    <div class="avt"><img src="{STATICURL}image/magic/hidden.gif" alt="{lang anonymity}" /></div>
                    <p>{lang anonymity}</p>
                    <span><!--{date($value[dateline], 'u', 9999, $_G[setting][dateformat])}--></span>
                <!--{else}-->
                    <a href="home.php?mod=space&uid=$value[vuid]" title="{if $ols[$value[vuid]]}{lang online}{/if}" class="avt_l" c="1">
                        <!--{if $ols[$value[vuid]]}--><em class="gol"></em><!--{/if}-->
                        <!--{avatar($value[vuid],small)}-->
                    </a>
                    <strong style="display:none;"><a href="home.php?mod=space&uid=$value[vuid]" title="$value[username]">$value[vusername]</a></strong>
                    <br />
                    <span  style="display:none;"><!--{date($value[dateline], 'u', 9999, $_G[setting][dateformat])}--></span>
                <!--{/if}-->
            </li>
            <!--{/loop}-->
        </ul>
    </div>
</div>
<!--{/if}-->

<!--{if $listcfriend && $home_run}-->
<div class="bm {if $_G['gp_diy'] != 'yes'} block{/if} move-span">
    <div class="blocktitle title">
        <span>Có {$listcfriend['count']} bạn chung</span>
        <span class="y xw0"><a id="a_cfriend_$space[uid]"  onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=friend&op=getcfriend&fuid=$space[uid]&handlekey=cfrfriendhk">Xem thêm</a></span>
    </div>
    <div class="bm_l woo-mr-bt">
        <ul class="inlinelist clearfix">
            <!--{eval $numcfriend = 0;}-->
            <!--{loop $listcfriend['list'] $key $value}-->
            <!--{eval $numcfriend++;}-->
            <li class="z clearfix">
                    <a href="home.php?mod=space&username=$value[username]" title="{if $ols[$value[vuid]]}{lang online}{/if}" class="avt_l" c="1">
                        <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                        <!--{avatar($value[uid],small)}-->
                    </a>
                    <strong style="display:none;"><a href="home.php?mod=space&username=$value[username]" title="$value[username]">$value[username]</a></strong>
            </li>
            <!--{if $numcfriend > 4}-->
            <!--{eval break;}-->
            <!--{/if}-->
            <!--{/loop}-->
        </ul>
    </div>
</div>
<!--{/if}-->
